﻿//
using PerceptiveMCAPI;
//
namespace PerceptiveMCAPI_Test
{
   public partial class get_inlineCss : System.Web.UI.UserControl
   {
      public ApiMethod method { get; set; }

      public string content
      {
         get { return tbContent.Text; }
         private set { tbContent.Text = value; }
      }
      public bool strip_css
      {
         get { return cbStripcss.Checked; }
         private set { cbStripcss.Checked = value; }
      }

      // -----------------------------------------------------
      public void Setup()
      {
         this.Visible = true;
         this.content = "";
         tbContent.Focus();

         lblMethod.Text = method.name;
         lblSection.Text = method.section;

         cbStripcss.Checked = MCAPISettings.default_inlineCss_strip_css;
      }
   }
}